package com.itheima.netmarket.activity;

import com.itheima.netmarket.formwork.view.manager.BottomManager;
import com.itheima.netmarket.formwork.view.manager.UIManager;
import com.itheima.netmarket.impl.view.TestView;
import com.itheima.netmarket.impl.view.manager.BottomManagerImpl;
import com.itheima.netmarket.impl.view.manager.UIManagerImpl;
import comitheima.netmarket.R;

import android.app.Activity;
import android.os.Bundle;

public class TestActivity extends Activity {
	private UIManager uiManager;
	private BottomManager bottomManager;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.testactivity);
		uiManager = UIManagerImpl.getInstance();
		uiManager.init(this);

		bottomManager = BottomManagerImpl.getInstance();
		bottomManager.init(this);

		test();
	}

	public void test() {
		// TODO :测试用的代码
		uiManager.changeView(TestView.class);
	}

	@Override
	public void onBackPressed() {
		uiManager.pressBack();
	}
}
